package com.abu.messagems.utils;

import java.util.Random;

public class GeneratorCode {

    public static String getCode(int num) {

        StringBuilder sb = new StringBuilder();
        for (int i = 0; i < num; i++) {
            int nextNum = new Random().nextInt(num) + 1;
            sb.append(nextNum);
        }
        return sb.toString();
    }
}
